package br.macedo.bll;

import java.util.ArrayList;
import java.util.List;

import br.macedo.model.QuestionModel;

public class BllFactory {

	public static QuestionModel CreateNewSimpleQuestion(String text,
			String ... options) {
		QuestionModel q = new QuestionModel();
		q.setQuestion(text);
		List<String> alternatives = new ArrayList<String>();
		
		for (String s : options) {
			alternatives.add(s);
		}
		q.setAlternatives(alternatives);
		return q;
	}

}
